package com.ace.aceeurekaconsumer;

import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name= "eureka-client", fallback = HelloRemoteServiceFallBack.class)
@Headers({"Content-Type: application/json;charset=UTF-8"})
public interface HelloRemote {
    @RequestMapping(value = "/hello")
    public String hello(@RequestParam(value = "name") String name);
}
